.class Lcom/instagram/android/creation/b/ah;
.super Ljava/lang/Object;
.source "DirectShareFragment.java"

# interfaces
.implements Lcom/instagram/android/directshare/widget/g;


# instance fields
.field final synthetic a:Lcom/instagram/android/creation/b/v;


# direct methods
.method constructor <init>(Lcom/instagram/android/creation/b/v;)V
    .locals 0
    .parameter

    .prologue
    .line 300
    iput-object p1, p0, Lcom/instagram/android/creation/b/ah;->a:Lcom/instagram/android/creation/b/v;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Landroid/view/View;)V
    .locals 3
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 303
    iget-object v0, p0, Lcom/instagram/android/creation/b/ah;->a:Lcom/instagram/android/creation/b/v;

    invoke-static {v0}, Lcom/instagram/android/creation/b/v;->k(Lcom/instagram/android/creation/b/v;)Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/directshare/widget/DirectShareSearchEditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/instagram/android/creation/b/ah;->a:Lcom/instagram/android/creation/b/v;

    invoke-static {v0}, Lcom/instagram/android/creation/b/v;->i(Lcom/instagram/android/creation/b/v;)Lcom/instagram/pendingmedia/model/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->L()Lcom/instagram/pendingmedia/model/h;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/h;->b()Z

    move-result v0

    if-nez v0, :cond_1

    .line 305
    iget-object v0, p0, Lcom/instagram/android/creation/b/ah;->a:Lcom/instagram/android/creation/b/v;

    invoke-static {v0}, Lcom/instagram/android/creation/b/v;->o(Lcom/instagram/android/creation/b/v;)Landroid/view/ViewGroup;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/creation/b/ah;->a:Lcom/instagram/android/creation/b/v;

    invoke-static {v1}, Lcom/instagram/android/creation/b/v;->n(Lcom/instagram/android/creation/b/v;)I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    .line 306
    iget-object v1, p0, Lcom/instagram/android/creation/b/ah;->a:Lcom/instagram/android/creation/b/v;

    invoke-static {v1}, Lcom/instagram/android/creation/b/v;->a(Lcom/instagram/android/creation/b/v;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 307
    invoke-virtual {v0}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/pendingmedia/model/g;

    .line 308
    iget-object v1, p0, Lcom/instagram/android/creation/b/ah;->a:Lcom/instagram/android/creation/b/v;

    invoke-static {v1}, Lcom/instagram/android/creation/b/v;->i(Lcom/instagram/android/creation/b/v;)Lcom/instagram/pendingmedia/model/c;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->L()Lcom/instagram/pendingmedia/model/h;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/instagram/pendingmedia/model/h;->b(Lcom/instagram/pendingmedia/model/g;)V

    .line 309
    iget-object v0, p0, Lcom/instagram/android/creation/b/ah;->a:Lcom/instagram/android/creation/b/v;

    invoke-static {v0, v2}, Lcom/instagram/android/creation/b/v;->b(Lcom/instagram/android/creation/b/v;Z)Z

    .line 317
    :goto_0
    return-void

    .line 311
    :cond_0
    iget-object v1, p0, Lcom/instagram/android/creation/b/ah;->a:Lcom/instagram/android/creation/b/v;

    const/4 v2, 0x1

    invoke-static {v1, v2}, Lcom/instagram/android/creation/b/v;->b(Lcom/instagram/android/creation/b/v;Z)Z

    .line 312
    iget-object v1, p0, Lcom/instagram/android/creation/b/ah;->a:Lcom/instagram/android/creation/b/v;

    invoke-static {v1}, Lcom/instagram/android/creation/b/v;->p(Lcom/instagram/android/creation/b/v;)Lcom/instagram/android/util/a;

    move-result-object v1

    const/high16 v2, 0x3f00

    invoke-virtual {v1, v0, v2}, Lcom/instagram/android/util/a;->a(Landroid/view/View;F)V

    goto :goto_0

    .line 315
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/creation/b/ah;->a:Lcom/instagram/android/creation/b/v;

    invoke-static {v0, v2}, Lcom/instagram/android/creation/b/v;->b(Lcom/instagram/android/creation/b/v;Z)Z

    goto :goto_0
.end method
